export const propsObject = {
    src: String,
    width: [Number, String],
    height: [Number, String],
    aspectRatio: [Number, String],
    mode: {
        type: String,
        default: '',
        validator: (value) => {
            return [
                '',
                'scaleToFill',
                'aspectFit',
                'aspectFill',
                'widthFix',
            ].includes(value);
        },
    },
    /**
     * 圆角
     */
    radius: [Number, String],
    lazyLoad: {
        type: Boolean,
        default: false,
    },
    // 占位图片风格，是否白底，默认底 #f1f1f1
    placeholderLight: {
        type: Boolean,
        default: false,
    },
    /**
     * 仅小程序有用
     */
    showMenuByLongpress: {
        type: Boolean,
        default: false,
    },
};
